export function searchColumns() {
  return [
    {
      filterable: true,
      type: 'select',
      prop: 'no',
      dicData: this.dataList.map(item => {
        return { value: item?.id, label: item?.no }
      }),
      placeholder: '请选择渠道号',
    },
    {
      filterable: true,
      type: 'select',
      prop: 'name',
      dicData: this.dataList.map(item => {
        return { value: item?.id, label: item?.name }
      }),
      placeholder: '请选择渠道名称',
    },
    {
      filterable: true,
      type: 'select',
      prop: 'alias',
      dicData: this.dataList.map(item => {
        return { value: item?.id, label: item?.alias }
      }),
      placeholder: '请选择渠道别名',
    },
    {
      filterable: true,
      type: 'select',
      prop: 'merchant',
      dicData: this.dataList.map(item => {
        return { value: item?.id, label: item?.merchant }
      }),
      placeholder: '请选择渠道商',
    },
  ]
}

export function tableColumns() {
  return [
    {
      hide: !this.hide,
      width: '140px',
      label: '日期',
      prop: 'create_at',
      formatter: row => this.$formatTime(row.create_at),
    },
    {
      hide: !this.hide,
      label: '渠道号',
      prop: 'no',
    },
    {
      hide: !this.hide,
      label: '充值总额',
      prop: 'merchant',
    },
    {
      hide: !this.hide,
      label: '推广成本',
      prop: 'name',
    },
    {
      hide: !this.hide,
      label: '利润',
      prop: 'jk',
    },
    {
      hide: !this.hide,
      label: '利润率',
      prop: 'person',
    },
    {
      hide: !this.hide,
      label: '新人用户数',
      prop: 'newUser',
    },
    {
      hide: !this.hide,
      label: '新用户付费人数',
      prop: 'newUserAmount',
    },
    {
      hide: !this.hide,
      label: '新用户付费率',
      prop: 'newUserAmountP',
    },
    {
      hide: !this.hide,
      label: '新用户充值金额',
      prop: 'newUserCoins',
    },
    {
      hide: !this.hide,
      label: '新用户人均付费金额',
      prop: 'funcke',
    },
    {
      hide: !this.hide,
      label: '回本率',
      prop: 'op',
    },
    {
      hide: !this.hide,
      label: '使用APP总时长',
      prop: 'app',
    },
    {
      hide: !this.hide,
      label: '消费金币',
      prop: 'coins',
    },
    {
      hide: !this.hide,
      label: '消费赠送',
      prop: 'zenong',
    },
    {
      hide: !this.hide,
      label: '总消费',
      prop: 'all',
    },
    {
      hide: !this.hide,
      label: '复充充值人数',
      prop: 'count',
    },
    {
      hide: !this.hide,
      label: '复充充值额',
      prop: 'uiui',
    },
    {
      hide: !this.hide,
      label: '复充占比',
      prop: 'asd',
    },
    {
      hide: this.hide,
      label: '用户留存第1日',
      prop: 'day1',
    },
    {
      hide: this.hide,
      label: '第2日',
      prop: 'day2',
    },
    {
      hide: this.hide,
      label: '第3日',
      prop: 'day3',
    },
    {
      hide: this.hide,
      label: '第4日',
      prop: 'day4',
    },
    {
      hide: this.hide,
      label: '第5日',
      prop: 'day5',
    },
    {
      hide: this.hide,
      label: '第6日',
      prop: 'day6',
    },
    {
      hide: this.hide,
      label: '第7日',
      prop: 'day7',
    },
    {
      hide: this.hide,
      label: '第8日',
      prop: 'day8',
    },
    {
      hide: this.hide,
      label: '第9日',
      prop: 'day9',
    },
    {
      hide: this.hide,
      label: '第10日',
      prop: 'day10',
    },
    {
      hide: this.hide,
      label: '第11日',
      prop: 'day11',
    },
    {
      hide: this.hide,
      label: '第12日',
      prop: 'day12',
    },
    {
      hide: this.hide,
      label: '第13日',
      prop: 'day13',
    },
    {
      hide: this.hide,
      label: '第14日',
      prop: 'day14',
    },
    {
      hide: this.hide,
      label: '第15日',
      prop: 'day15',
    },
    {
      hide: this.hide,
      label: '第16日',
      prop: 'day16',
    },
    {
      hide: this.hide,
      label: '第17日',
      prop: 'day17',
    },
    {
      hide: this.hide,
      label: '第18日',
      prop: 'day18',
    },
    {
      hide: this.hide,
      label: '第19日',
      prop: 'day19',
    },
    {
      hide: this.hide,
      label: '第20日',
      prop: 'day20',
    },
    {
      hide: this.hide,
      label: '第21日',
      prop: 'day21',
    },
    {
      hide: this.hide,
      label: '第22日',
      prop: 'day22',
    },
    {
      hide: this.hide,
      label: '第23日',
      prop: 'day23',
    },
    {
      hide: this.hide,
      label: '第24日',
      prop: 'day24',
    },
    {
      hide: this.hide,
      label: '第25日',
      prop: 'day25',
    },
    {
      hide: this.hide,
      label: '第26日',
      prop: 'day26',
    },
    {
      hide: this.hide,
      label: '第27日',
      prop: 'day27',
    },
    {
      hide: this.hide,
      label: '第28日',
      prop: 'day28',
    },
    {
      hide: this.hide,
      label: '第29日',
      prop: 'day29',
    },
    {
      hide: this.hide,
      label: '第30日',
      prop: 'day30',
    },
    {
      hide: this.hide,
      label: '第60日',
      prop: 'day60',
    },
    {
      hide: this.hide,
      label: '第90日',
      prop: 'day90',
    },
    {
      hide: this.hide,
      label: '第120日',
      prop: 'day120',
    },
    {
      hide: this.hide,
      label: '第150日',
      prop: 'day150',
    },
    {
      hide: this.hide,
      label: '第180日',
      prop: 'day180',
    },
  ]
}

export function addDialogForm() {
  return [
    {
      display: this.show,
      disabled: this.show,
      label: '渠道号',
      prop: 'no',
    },
    {
      label: '渠道商',
      prop: 'merchant',
    },
    {
      label: '渠道名称',
      prop: 'name',
    },
    {
      label: '渠道别名',
      prop: 'alias',
    },
  ]
}
